Following files were modified:

comedilib/avg.c
comedilib/demo/beech.c
threads/dpm405lp.c
threads/my_threads.c
threads/my_threads.h
threads/example.c

For running the example program in the 405 LP board, type:
#./example {DVS} {task num.} {worst case utilization} {n} {baseline} {pattern} {load}
    DVS: the DVS algorithm to use
        0: static
        1: cycle conserving
        2: look-ahead
        3: feedback-DVS
        4: Aydin's aggressive AGR DVS
        5: Aydin's DR_OTE DVS
        6: naive DVS
        7: original look-ahead
    task num:
         : number of tasks in the task set
    worst case utilization:
        1: WCET Utilization=0.1
        2: WCET Utilization=0.2
           ...
        9: WCET Utilization=0.9
    n:
        Program stops after n hyperperiod
    baseline:
        0: avg.cc/WCET=0.30, amplitude=0.20
        1: avg.cc/WCET=0.50, amplitude=0.30
        2: avg.cc/WCET=0.75, amplitude=0.20
    pattern:
        0: constant exec. time
        1: fluctuating exec. time - exponential
        2: fluctuating exec. time - half-sine
        3: fluctuating exec. time - sine
    type of test load:
        0: CPU intensive
        1: Memory intensive
        2: CPU/Memory intensive

For collecting the data from the acquisition board:
#./beech -v -n 4 -N 2000
Here 4 indicates the number of channels.